import { prefixUT } from '@/services/question-treatise';
import request from '@/utils/request';
import { prefix } from '@/utils/utils';

const prefixU = prefix('question-treatise');

export async function getTreatise(opt) {
  return request<prefixUT['getTreatise']>(prefixU('getTreatise'), {
    method: 'POST',
    data: opt,
  });
}

export async function setTreatise(opt) {
  return request<prefixUT['updateTreatise']>(prefixU('updateTreatise'), {
    method: 'POST',
    data: opt,
  });
}
